package com.reeygu.cli.pattern;

import com.reeygu.entity.Device;

public class TurnOnCommand implements Command{
    private Device device;

    public TurnOnCommand(Device device) {
        this.device = device;
    }

    @Override
    public void execute() {
        System.out.println("执行关机");
        device.turnOn();
    }

}
